/*
 * MIT License
 *
 * Copyright (c) 2023 OrdinaryRoad
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: douyin.proto

// Protobuf Java Version: 3.25.3
package tech.ordinaryroad.live.chat.client.codec.douyin.protobuf;

/**
 * Protobuf type {@code RanklistHourEntrance_Info}
 */
public final class RanklistHourEntrance_Info extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:RanklistHourEntrance_Info)
    RanklistHourEntrance_InfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RanklistHourEntrance_Info.newBuilder() to construct.
  private RanklistHourEntrance_Info(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private RanklistHourEntrance_Info() {
    details_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new RanklistHourEntrance_Info();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_RanklistHourEntrance_Info_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_RanklistHourEntrance_Info_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info.class, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info.Builder.class);
  }

  public static final int DETAILS_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail> details_;
  /**
   * <pre>
   * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
   * </pre>
   *
   * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
   */
  @java.lang.Override
  public java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail> getDetailsList() {
    return details_;
  }
  /**
   * <pre>
   * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
   * </pre>
   *
   * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
   */
  @java.lang.Override
  public java.util.List<? extends tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_DetailOrBuilder> 
      getDetailsOrBuilderList() {
    return details_;
  }
  /**
   * <pre>
   * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
   * </pre>
   *
   * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
   */
  @java.lang.Override
  public int getDetailsCount() {
    return details_.size();
  }
  /**
   * <pre>
   * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
   * </pre>
   *
   * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail getDetails(int index) {
    return details_.get(index);
  }
  /**
   * <pre>
   * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
   * </pre>
   *
   * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_DetailOrBuilder getDetailsOrBuilder(
      int index) {
    return details_.get(index);
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    for (int i = 0; i < details_.size(); i++) {
      output.writeMessage(1, details_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    for (int i = 0; i < details_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, details_.get(i));
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info)) {
      return super.equals(obj);
    }
    tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info other = (tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info) obj;

    if (!getDetailsList()
        .equals(other.getDetailsList())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getDetailsCount() > 0) {
      hash = (37 * hash) + DETAILS_FIELD_NUMBER;
      hash = (53 * hash) + getDetailsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code RanklistHourEntrance_Info}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:RanklistHourEntrance_Info)
      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_InfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_RanklistHourEntrance_Info_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_RanklistHourEntrance_Info_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info.class, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info.Builder.class);
    }

    // Construct using tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (detailsBuilder_ == null) {
        details_ = java.util.Collections.emptyList();
      } else {
        details_ = null;
        detailsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_RanklistHourEntrance_Info_descriptor;
    }

    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info getDefaultInstanceForType() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info.getDefaultInstance();
    }

    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info build() {
      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info buildPartial() {
      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info result = new tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info result) {
      if (detailsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          details_ = java.util.Collections.unmodifiableList(details_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.details_ = details_;
      } else {
        result.details_ = detailsBuilder_.build();
      }
    }

    private void buildPartial0(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info result) {
      int from_bitField0_ = bitField0_;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info) {
        return mergeFrom((tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info other) {
      if (other == tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info.getDefaultInstance()) return this;
      if (detailsBuilder_ == null) {
        if (!other.details_.isEmpty()) {
          if (details_.isEmpty()) {
            details_ = other.details_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureDetailsIsMutable();
            details_.addAll(other.details_);
          }
          onChanged();
        }
      } else {
        if (!other.details_.isEmpty()) {
          if (detailsBuilder_.isEmpty()) {
            detailsBuilder_.dispose();
            detailsBuilder_ = null;
            details_ = other.details_;
            bitField0_ = (bitField0_ & ~0x00000001);
            detailsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getDetailsFieldBuilder() : null;
          } else {
            detailsBuilder_.addAllMessages(other.details_);
          }
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail m =
                  input.readMessage(
                      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.parser(),
                      extensionRegistry);
              if (detailsBuilder_ == null) {
                ensureDetailsIsMutable();
                details_.add(m);
              } else {
                detailsBuilder_.addMessage(m);
              }
              break;
            } // case 10
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail> details_ =
      java.util.Collections.emptyList();
    private void ensureDetailsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        details_ = new java.util.ArrayList<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail>(details_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_DetailOrBuilder> detailsBuilder_;

    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail> getDetailsList() {
      if (detailsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(details_);
      } else {
        return detailsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public int getDetailsCount() {
      if (detailsBuilder_ == null) {
        return details_.size();
      } else {
        return detailsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail getDetails(int index) {
      if (detailsBuilder_ == null) {
        return details_.get(index);
      } else {
        return detailsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public Builder setDetails(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail value) {
      if (detailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDetailsIsMutable();
        details_.set(index, value);
        onChanged();
      } else {
        detailsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public Builder setDetails(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.Builder builderForValue) {
      if (detailsBuilder_ == null) {
        ensureDetailsIsMutable();
        details_.set(index, builderForValue.build());
        onChanged();
      } else {
        detailsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public Builder addDetails(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail value) {
      if (detailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDetailsIsMutable();
        details_.add(value);
        onChanged();
      } else {
        detailsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public Builder addDetails(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail value) {
      if (detailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDetailsIsMutable();
        details_.add(index, value);
        onChanged();
      } else {
        detailsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public Builder addDetails(
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.Builder builderForValue) {
      if (detailsBuilder_ == null) {
        ensureDetailsIsMutable();
        details_.add(builderForValue.build());
        onChanged();
      } else {
        detailsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public Builder addDetails(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.Builder builderForValue) {
      if (detailsBuilder_ == null) {
        ensureDetailsIsMutable();
        details_.add(index, builderForValue.build());
        onChanged();
      } else {
        detailsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public Builder addAllDetails(
        java.lang.Iterable<? extends tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail> values) {
      if (detailsBuilder_ == null) {
        ensureDetailsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, details_);
        onChanged();
      } else {
        detailsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public Builder clearDetails() {
      if (detailsBuilder_ == null) {
        details_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        detailsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public Builder removeDetails(int index) {
      if (detailsBuilder_ == null) {
        ensureDetailsIsMutable();
        details_.remove(index);
        onChanged();
      } else {
        detailsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.Builder getDetailsBuilder(
        int index) {
      return getDetailsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_DetailOrBuilder getDetailsOrBuilder(
        int index) {
      if (detailsBuilder_ == null) {
        return details_.get(index);  } else {
        return detailsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public java.util.List<? extends tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_DetailOrBuilder> 
         getDetailsOrBuilderList() {
      if (detailsBuilder_ != null) {
        return detailsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(details_);
      }
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.Builder addDetailsBuilder() {
      return getDetailsFieldBuilder().addBuilder(
          tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.getDefaultInstance());
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.Builder addDetailsBuilder(
        int index) {
      return getDetailsFieldBuilder().addBuilder(
          index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.getDefaultInstance());
    }
    /**
     * <pre>
     * "details" 字段是一个重复字段，使用 RanklistHourEntrance.Detail 消息类型
     * </pre>
     *
     * <code>repeated .RanklistHourEntrance_Detail details = 1;</code>
     */
    public java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.Builder> 
         getDetailsBuilderList() {
      return getDetailsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_DetailOrBuilder> 
        getDetailsFieldBuilder() {
      if (detailsBuilder_ == null) {
        detailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Detail.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_DetailOrBuilder>(
                details_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        details_ = null;
      }
      return detailsBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:RanklistHourEntrance_Info)
  }

  // @@protoc_insertion_point(class_scope:RanklistHourEntrance_Info)
  private static final tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info();
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<RanklistHourEntrance_Info>
      PARSER = new com.google.protobuf.AbstractParser<RanklistHourEntrance_Info>() {
    @java.lang.Override
    public RanklistHourEntrance_Info parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser<RanklistHourEntrance_Info> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<RanklistHourEntrance_Info> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.RanklistHourEntrance_Info getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

